package com.taxshare.seller.controller;

import com.taxshare.response.beans.Response;
import com.taxshare.seller.entity.SellerShangPinEntity;
import com.taxshare.seller.service.SellerShangPinService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/shuibian")
@Api(tags = "税收分类编码信息")
public class SellerShangPinController {

    @Autowired
    SellerShangPinService sellerShangPinService;

    @GetMapping("/getAllEntities")
    @ApiOperation(value = "查询全部税编名称", notes = "税编名称")
    public Response getAllEntities() {
        return Response.success(sellerShangPinService.getAllEntities());
    }
}
